<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .all{
            display: flex;

        }
        .source > div{
            width: 105px;
            height: 150px;
            border:1px solid red;
            padding:10px;
        }
        .dist{
            width: 500px;
            height:150px;
            border:1px solid blue;
        }
        .dist>img:not(.dist>img:nth-of-type(1)){
            margin-left:-70px;
        }
    </style>
</head>
<body>
    <div class="all">
        <div class="source">
            <div><img id="img1" draggable="true" src="../images/puke/3_1.jpg" alt=""></div>
            <div><img id="img2" draggable="true" src="../images/puke/3_2.jpg" alt=""></div>
            <div><img id="img3" draggable="true" src="../images/puke/3_3.jpg" alt=""></div>
        </div>
        <div class="dist"></div>
    </div>
    <script>
        let images = document.querySelectorAll("img");
        let dist = document.querySelector(".dist");
        for(let i = 0;i < images.length;i++){
            images[i].ondragstart = function(e){
                e.dataTransfer.setData("pjx",this.id);
            }
        }
        dist.ondragover = function(e){
            e.preventDefault();
        }
        dist.ondrop = function(e){
            let id = e.dataTransfer.getData("pjx");
            this.appendChild(document.getElementById(id));
        }
    </script>
</body>
</html>